
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }

        body {
            background: linear-gradient(135deg, #1a2a6c, #3a7bd5, #00d2ff);
            color: #333;
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background-color: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            padding: 20px;
        }

        header {
            text-align: center;
            padding: 25px;
            background: linear-gradient(to right, #2c3e50, #4a6491);
            color: white;
            border-radius: 15px;
            margin-bottom: 25px;
        }

        header h1 {
            font-size: 2.8rem;
            margin-bottom: 10px;
            letter-spacing: 1px;
        }

        .subtitle {
            font-size: 1.3rem;
            opacity: 0.9;
        }

        .game-container {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 25px;
            margin-bottom: 25px;
        }

        .game-info {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .info-box {
            background-color: #f8f9fa;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            border-left: 5px solid #3a7bd5;
        }

        .info-box h3 {
            color: #2c3e50;
            margin-bottom: 10px;
            font-size: 1.4rem;
        }

        .stats {
            background-color: #f8f9fa;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .stat {
            display: flex;
            justify-content: space-between;
            padding: 10px;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
        }

        .stat-label {
            font-weight: 600;
            color: #555;
        }

        .stat-value {
            font-weight: 700;
            color: #3a7bd5;
            font-size: 1.2rem;
        }

        .game-area {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .target-section, .puzzle-section {
            background-color: #f8f9fa;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .target-section h3, .puzzle-section h3 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 1.4rem;
        }

        #character-meaning {
            font-style: italic;
            color: #666;
            margin-bottom: 15px;
        }

        .target-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            width: 200px;
            height: 200px;
            margin: 0 auto;
            background-color: #e9ecef;
            border-radius: 10px;
            padding: 10px;
        }

        .grid-cell {
            background-color: white;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            border: 2px dashed #ccc;
        }

        .grid-cell.filled {
            border: 2px solid #3a7bd5;
            background-color: #e3f2fd;
        }

        .puzzle-container {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .puzzle-pieces {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            min-height: 200px;
            background-color: #e9ecef;
            border-radius: 10px;
            padding: 15px;
        }

        .puzzle-piece {
            background-color: white;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.2rem;
            font-weight: bold;
            cursor: grab;
            transition: all 0.2s ease;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            user-select: none;
            min-height: 70px;
        }

        .puzzle-piece:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }

        .puzzle-piece.dragging {
            opacity: 0.7;
            transform: scale(1.05);
        }

        .puzzle-piece.correct {
            background-color: #d4edda;
            color: #155724;
            cursor: default;
        }

        .puzzle-piece.used {
            opacity: 0.4;
            cursor: default;
        }

        .puzzle-controls {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
        }

        .btn {
            padding: 12px 20px;
            border: none;
            border-radius: 10px;
            background-color: #6c757d;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        }

        .btn-primary {
            background-color: #3a7bd5;
        }

        .btn-primary:hover {
            background-color: #2c6bc7;
        }

        .game-controls {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }

        .difficulty-select {
            padding: 12px 20px;
            border-radius: 10px;
            border: 2px solid #3a7bd5;
            background-color: white;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
        }

        .message {
            text-align: center;
            padding: 15px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 1.1rem;
            display: none;
        }

        .message.success {
            background-color: #d4edda;
            color: #155724;
            display: block;
        }

        .message.error {
            background-color: #f8d7da;
            color: #721c24;
            display: block;
        }

        footer {
            text-align: center;
            padding: 20px;
            color: #6c757d;
            border-top: 1px solid #dee2e6;
            font-size: 0.9rem;
        }

        /* 模态框样式 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background-color: white;
            border-radius: 20px;
            width: 90%;
            max-width: 700px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            position: relative;
            max-height: 80vh;
            overflow-y: auto;
        }

        .close-modal {
            position: absolute;
            top: 20px;
            right: 25px;
            font-size: 2rem;
            cursor: pointer;
            color: #6c757d;
        }

        .close-modal:hover {
            color: #333;
        }

        .instructions h3 {
            color: #2c3e50;
            margin-top: 20px;
            margin-bottom: 10px;
        }

        .instructions ul {
            padding-left: 20px;
            margin-bottom: 20px;
        }

        .instructions li {
            margin-bottom: 8px;
            line-height: 1.5;
        }

        /* 响应式设计 */
        @media (max-width: 992px) {
            .game-container {
                grid-template-columns: 1fr;
            }
            
            .target-grid {
                width: 180px;
                height: 180px;
            }
            
            .puzzle-pieces {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 768px) {
            header h1 {
                font-size: 2.2rem;
            }
            
            .game-controls {
                flex-direction: column;
                align-items: center;
            }
            
            .btn {
                width: 100%;
                max-width: 300px;
            }
            
            .difficulty-select {
                width: 100%;
                max-width: 300px;
            }
            
            .puzzle-controls {
                flex-direction: column;
            }
            
            .puzzle-pieces {
                grid-template-columns: repeat(2, 1fr);
            }
        }
